package com.glsc.ngateway.common.api.common.dto;

import cn.hutool.core.annotation.Alias;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * 基类
 * @author xuchang
 */
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@MappedSuperclass
public abstract class BaseEntityDto implements Serializable {

    private static final long serialVersionUID = 5286347275922731658L;

    @Alias(value = "id")
    @ApiModelProperty(value = "id")
    private Long id;

    @JsonIgnore
    private String createAccount;

    @JsonIgnore
    private String updateAccount;

}
